package com.yun.web;

import java.util.HashMap;
import java.util.Map;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping(value = "/rest")
public class RestDrlController {

	@GetMapping(value = "/drl")
	public Map<String, String> drl() {
		Map<String, String> map = new HashMap<String, String>();
		map.put("controller", "drools");
		return map;
	}

	@GetMapping(value = "/getDrl")
	public String getDrl() {
		return "hello drools";
	}

}
